<?php

/**
 * 首页控制器
 * @author chenchao
 * @version 1.0.1
 * 
 */
class MallController extends ControllerFrontend
{
    var $_allowed_actions = array('view');
    protected $_stripMetaTitle = true;

    function __construct($act)
    {
        !$act && $act = 'view';
//        $this->assign('view', $act);
//pr($this);
        parent::ControllerFrontend($act);
    }

    /**
     * 内容管理器视图
     *
     */
    function view()
    {
        $cache_id = 'mall';

/**
        //首页最新动态
        $bulletins = CntManager::attribute_getNotices(1);
        $this->assign('firstBulletins', $firstBulletins);
        $this->assign('bulletins', $bulletins);
**/
//pr($this);
        //homepage是指的themes\mall\layout\下面的homepage文件夹
        //mall是指themes下面的mall文件夹
        $this->display('homepage', 'mall', $cache_id);
    }

}
